package net.ujacha.sadari.multi;

public class Sadari {

	public static int[][] makeModel(int line, int num) {
		
		int[][] model = new int[line][num];

		for (int i = 0; i < line; i++) {

			for (int j = 0; j < num; j++) {
				int m = 0;
				if (j == 0) {
					continue;
				} else {
					
					if(i != 0 && i != line - 1){
						if ((int) (Math.random() * 10) % 2 != 0) {					
							if (model[i][j - 1] == 0 && model[i-1][j] == 0) {
								m = 1;
							} 
						}
					}
				}
				
				model[i][j] = m;
			}
		}

		return model;
		
	}

}
